/*
 * @Author: your name
 * @Date: 2021-05-10 11:17:54
 * @LastEditTime: 2021-05-13 10:45:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \随便写写d:\桌面\管小助\js\index.js
 */



// 获取xxk1每一个li
let xxk =document.querySelectorAll("#xxk1 .firstXxk li")
// console.log(li);
let main =document.querySelectorAll("#xxk1-main .boxshandow")
// console.log(main);
for(let i = 0;i<xxk.length;i++){
    xxk[i].addEventListener("mouseover",function(){
        for(let j="0";j<xxk.length;j++){
            xxk[j].classList.remove("pick")
            main[j].classList.remove("on")
        }
        xxk[i].classList.add("pick")
        main[i].classList.add("on")
    })
}

// $("#xxk1 .firstXxk li").mouseover(function(){
//     $(this).css("border-bottom","5.4px solid #00A578;")
// })
// 获取xxk2每一个li
let xxk2 =document.querySelectorAll("#xxk2 .secondXxk li")
// console.log(li);
let main2 =document.querySelectorAll("#xxk2-main .boxshandow")
// console.log(main);
for(let a = 0;a<xxk2.length;a++){
    // console.log(xxk2[a]);
    xxk2[a].addEventListener("mouseover",function(){
        // console.log(1);
        for(let b=0;b<xxk2.length;b++){
            // console.log(xxk2[b]);
            xxk2[b].classList.remove("pick")
            main2[b].classList.remove("on")
        }
        xxk2[a].classList.add("pick")
        main2[a].classList.add("on")
    })
}

// 获取xxk3每一个li
let xxk3 =document.querySelectorAll("#xxk3 .secondXxk li")
// console.log(li);
let main3 =document.querySelectorAll("#xxk3-main .boxshandow")
// console.log(main);
for(let c = 0;c<xxk3.length;c++){
    // console.log(xxk2[a]);
    xxk3[c].addEventListener("mouseover",function(){
        // console.log(1);
        for(let d=0;d<xxk3.length;d++){
            // console.log(xxk2[b]);
            xxk3[d].classList.remove("pick")
            main3[d].classList.remove("on")
        }
        xxk3[c].classList.add("pick")
        main3[c].classList.add("on")
    })
}

// 获取xxk4每一个li
let xxk4 =document.querySelectorAll("#xxk4 .secondXxk li")
// console.log(li);
let main4 =document.querySelectorAll("#xxk4-main .boxshandow")
// console.log(main);
for(let e = 0;e<xxk4.length;e++){
    // console.log(xxk2[a]);
    xxk4[e].addEventListener("mouseover",function(){
        // console.log(1);
        for(let f=0;f<xxk4.length;f++){
            // console.log(xxk2[b]);
            xxk4[f].classList.remove("pick")
            main4[f].classList.remove("on")
        }
        xxk4[e].classList.add("pick")
        main4[e].classList.add("on")
    })
}

// 获取xxk5每一个li
let xxk5 =document.querySelectorAll("#xxk5 .secondXxk li")
// console.log(li);
let main5 =document.querySelectorAll("#xxk5-main .boxshandow")
// console.log(main);
for(let g = 0;g<xxk5.length;g++){
    // console.log(xxk2[a]);
    xxk5[g].addEventListener("mouseover",function(){
        // console.log(1);
        for(let h=0;h<xxk5.length;h++){
            // console.log(xxk2[b]);
            xxk5[h].classList.remove("pick")
            main5[h].classList.remove("on")
        }
        xxk5[g].classList.add("pick")
        main5[g].classList.add("on")
    })
}

// 获取xxk6每一个li
let xxk6 =document.querySelectorAll("#xxk6 .secondXxk li")
// console.log(li);
let main6 =document.querySelectorAll("#xxk6-main .boxshandow")
// console.log(main);
for(let k = 0;k<xxk6.length;k++){
    // console.log(xxk2[a]);
    xxk6[k].addEventListener("mouseover",function(){
        // console.log(1);
        for(let l=0;l<xxk6.length;l++){
            // console.log(xxk2[b]);
            xxk6[l].classList.remove("pick")
            main6[l].classList.remove("on")
        }
        xxk6[k].classList.add("pick")
        main6[k].classList.add("on")
    })
}